using Microsoft.UI.Xaml.Data;

namespace MultiAgentsClient.Converter;

public class InputTextBoxVisibilityConverter : IValueConverter
{
    object IValueConverter.Convert(object value, Type targetType, object parameter, string language)
    {
        if (value is int chatRoomId)
        {
            return chatRoomId > 0 ? "Visible" : "Collapsed";
        }

        throw new Exception("Should not happen.");
    }

    object IValueConverter.ConvertBack(object value, Type targetType, object parameter, string language)
    {
        throw new NotImplementedException();
    }
}
